package com.ruoyi.asms.domain.vo;


import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.domain.model.FullTypeInfoVo;
import com.ruoyi.common.core.utils.DateUtils;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description
 * @Author YangJun
 * @Date 2021年11月22日 14:04:17
 **/
@Data
@NoArgsConstructor
public class AssetFullInfoImportVo {
    private static final long serialVersionUID = 1L;

    //资产基础信息开始
    @Excel(name = "资产编码")
    private String sn;
    @Excel(name = "资产类型名称")
    private String assetTypeName;
    @Excel(name = "资产所属品牌")
    private String brandName;
    @Excel(name = "资产所属批次")
    private String projectName;
    @Excel(name = "资产型号")
    private String assetTemplateName;
    @Excel(name = "规格标准")
    private String specification;
    @Excel(name = "计量单位")
    private String measureUnit;

    //资产基础信息结束

    //资产所有者信息开始
    @Excel(name = "资产所属部门")
    private String oDeptShortName;
    @Excel(name = "资产使用部门")
    private String uDeptShortName;
    @Excel(name = "使用人")
    private String nickName;
    @Excel(name = "使用人联系电话")
    private String phonenumber;
    @Excel(name = "资产状态(1在用，2闲置，3借用，4报废，5调拨中，6维修中)")
    private String assetStatus;
    @Excel(name = "一级位置")
    private String addressNameNo1;
    @Excel(name = "二级位置")
    private String addressNameNo2;
    @Excel(name = "三级位置")
    private String addressNameNo3;
    @Excel(name = "四级位置")
    private String addressNameNo4;
    @Excel(name = "五级位置")
    private String addressNameNo5;
    @Excel(name = "经度")
    private String longitude;
    @Excel(name = "维度")
    private String latitude;
    @Excel(name = "位置码")
    private String addressCode;
    //资产所有者信息结束

    //资产维护信息开始
    @Excel(name = "维护商名称")
    private String mDeptShortName;
    @Excel(name = "开始维护时间")
    private String startUseTimeString;
    @Excel(name = "截止维护时间")
    private String endUseTimeString;

    private Long startUseTime;
    private Long endUseTime;
    private String fullAddress;
    private FullTypeInfoVo fullTypeInfoVo;
    private String fullUserInfo;
    private Integer index;

    public Long getStartUseTime() {
        return  DateUtils.stringToLong(getStartUseTimeString(),"yyyy-MM-dd");
    }


    public Long getEndUseTime() {
        return DateUtils.stringToLong(getEndUseTimeString(),"yyyy-MM-dd");
    }



    //资产维护信息结束


}
